import { Module } from '@nestjs/common';
import { CommonRedisService } from '../../service/common.redis.service';
import { RedisModule } from '@liaoliaots/nestjs-redis';
import { ConfigService } from '../../service/config.service';

@Module({
  imports: [
    RedisModule.forRoot({
      config: ConfigService.getRedisNodes()
    })
  ],
  providers: [CommonRedisService],
})
export class CommonRedisModule {}
